//
//  TestViewModel.swift
//  ADKit_Example
//
//  Created by 余林淋 on 2023/12/30.
//  Copyright © 2023 CocoaPods. All rights reserved.
//

import RxSwift
import SwiftyJSON

protocol ViewModelProtocol {
    
    associatedtype InputType
    associatedtype OutputType
    
    func transform(input: InputType) -> OutputType
}

//struct ViewModel: ViewModelProtocol {
//            
//    struct InputType {
//        let id: Int
//    }
//    
//    func transform(input: InputType) -> Observable<JSON> {
//        AdomaRequest.testJson(t: input.id).request.catch { error in
//            return Observable.just(JSON.null)
//        }
//    }
//}
